package com.app.common;

/**
 * @autor xiaoyu.fang
 * @date 2019/6/14 11:13
 */
public class BasePage {

    private int pageNum = 0;
    private int pageSize = 10;
    private String orderBy;

    public BasePage() {
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderBy() {
        return this.orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public int getPageNum() {
        return this.pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum > 0 ? pageNum - 1 : pageNum;
    }

}
